package com.huidu.bitrade.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.huidu.bitrade.enums.MemberLoanStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@ApiModel("用户变现、质押")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class MemberLoan  {

    private Long id;

    @ApiModelProperty("用户ID")
    private Long memberId;

    @ApiModelProperty("金额")
    private BigDecimal money;

    @ApiModelProperty("数量")
    private BigDecimal number;

    @ApiModelProperty("币种")
    private String baseCoinSymbol;

    @ApiModelProperty("状态")
    private MemberLoanStatus status;

    @ApiModelProperty("拒绝原因")
    private String reason;

    @ApiModelProperty("结束时间")
    private Long endDate;

    @ApiModelProperty("支付方式 1支付宝 2微信 3银行卡")
    private Integer payType;

    @ApiModelProperty(hidden = true)
    private String payInfo;

    private Long createUser;

    private Long updateUser;

    @TableField(fill = FieldFill.INSERT)
    private Long createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateTime;

}
